﻿<%@ Page Title="ScrumPeak.com" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
  AutoEventWireup="true" Inherits="MvcContrib.FluentHtml.ModelViewPage<UserPreferencesModel>" %>

<%@ Import Namespace="Peak.ApplicationServices" %>
<%@ Import Namespace="Peak.Web.Controllers" %>
<%@ Import Namespace="Peak.Web.Controllers.HtmlExtentions" %>
<%@ Import Namespace="Peak.Resources" %>
<%@ Import Namespace="Peak.Web.Controllers.Models" %>
<%@ Import Namespace="Peak.Web" %>
<%@ Import Namespace="Peak.Core" %>
<%@ Import Namespace="System.Threading" %>
<asp:Content ContentPlaceHolderID="center" runat="server">
  <div class="page-content">
    <div class="page-title">
      <%= PageTitles.UserPreferences %>
    </div>
    <table class="form">
      <tbody>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.UserName %>
          </td>
          <td class="formData">
            <%= Model.UserName %>
          </td>
        </tr>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.Email %>
          </td>
          <td class="formData">
            <%= Model.Email %>
          </td>
        </tr>   
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.FirstName %>
          </td>
          <td class="formData">
            <%= Model.FirstName %>
          </td>
        </tr>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.LastName %>
          </td>
          <td class="formData">
            <%= Model.LastName %>
          </td>
        </tr>             
        <tr>
          <td>
          </td>
          <td>
            <%= Html.PeakButton<UserController>(f => f.Edit(), Buttons.Edit)%>            
            <%= Html.PeakButton<UserController>(f => f.ChangePassword(), Buttons.ChangePassword)%>            
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</asp:Content>
